package team.seekers.hula.island.postComment.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.hula.common.entity.BaseDO;
import team.seekers.hula.island.post.entity.dao.IslandPostDOField;

import java.util.Date;

/**
 * @author ekin
 * @Description GOOD
 * @mood happy
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(IslandPostCommentDOField.TABLE_NAME)
public class IslandPostCommentDO extends BaseDO {
    private static final long serialVersionUID = 1L;

    @TableId(value = IslandPostCommentDOField.ID, type = IdType.ASSIGN_ID)
    private String id;

    @TableField(IslandPostCommentDOField.USER_ID)
    private String userId;

    /**
     * 帖子内容
     */
    @TableField(IslandPostCommentDOField.CONTENT)
    private String content;

    /**
     * 帖子标题
     */
    @TableField(IslandPostCommentDOField.POST_ID)
    private String postId;


    /**
     * 给帖子点赞的
     */
    @TableField(IslandPostCommentDOField.LIKE_USERS_IDS)
    private String likeUserIds;

    @TableField(IslandPostCommentDOField.ISLAND_ID)
    private String islandId;

    @TableField(IslandPostCommentDOField.VISIBILITY)
    private Integer visibility;

    @TableField(IslandPostCommentDOField.DELETED)
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = IslandPostDOField.GMT_CREATE, fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = IslandPostDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
